mkdir -p /opt/job

mv /cleanup-scripts /opt/job

(crontab -l ; echo "05 07,13,19,01 * * * sh /opt/job/cleanup-scripts/clean-host-cache.sh >> /opt/job/cleanup-scripts/logs/clean-host-cache.log") | crontab -

(crontab -l ; echo "00 01 * * * sh /opt/job/cleanup-scripts/clean-common-logs.sh  >> /opt/job/cleanup-scripts/logs/clean-common-logs.log") | crontab -

systemctl enable crond
systemctl restart crond
crontab -l

